import sys
from os import environ
import string
sys.path.append(environ["PYTHON_MODULE_PATH"])
import CompuCellSetup

sim,simthread = CompuCellSetup.getCoreSimulationObjects()

CompuCellSetup.initializeSimulationObjects(sim,simthread)

steppableRegistry = CompuCellSetup.getSteppableRegistry()

from custom_steppables import SecretionSteppable
secrete = SecretionSteppable(sim)
steppableRegistry.registerSteppable(secrete)

CompuCellSetup.mainLoop(sim,simthread,steppableRegistry)
